package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbFriend 好友表
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */

public class TbFriend  implements Serializable {


	/**
	 * 好友信息ID
	 */
	private String fid;

	/**
	 * 用户id
	 */
	private String user;

	/**
	 * 好友id
	 */
	private String friend;

	/**
	 * 分组id
	 */
	private String groupId;

	/**
	 * 是否删除
	 */
	private Integer isDelete;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 备注
	 */
	private String comments;

	public String getFid() {
		return fid;
	}

	public void setFid(String fid) {
		this.fid = fid;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getFriend() {
		return friend;
	}

	public void setFriend(String friend) {
		this.friend = friend;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	@Override
	public String toString() {
		return "TbFriend{" +
				"fid='" + fid + '\'' +
				", user='" + user + '\'' +
				", friend='" + friend + '\'' +
				", groupId='" + groupId + '\'' +
				", isDelete=" + isDelete +
				", createTime=" + createTime +
				", comments='" + comments + '\'' +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbFriend)) {
			return false;
		}
		TbFriend tbFriend = (TbFriend) o;
		return Objects.equals(fid, tbFriend.fid) &&
				Objects.equals(user, tbFriend.user) &&
				Objects.equals(friend, tbFriend.friend) &&
				Objects.equals(groupId, tbFriend.groupId) &&
				Objects.equals(isDelete, tbFriend.isDelete) &&
				Objects.equals(createTime, tbFriend.createTime) &&
				Objects.equals(comments, tbFriend.comments);
	}

	@Override
	public int hashCode() {
		return Objects.hash(fid, user, friend, groupId, isDelete, createTime, comments);
	}
}
